package com.eshore.norm.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author HJ
 * @date 2024/1/3 9:00
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode()
@ToString(callSuper = true)
@TableName(value = "norm_config")
public class NormConfig {
    @TableId(value = "id")
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField(value = "config_name")
    @ApiModelProperty(value = "资源池名称")
    private String configName;

    @TableField(value = "room_id")
    @ApiModelProperty(value = "机房ID")
    private Long roomId;

    @TableField(value = "ak_str")
    @ApiModelProperty(value = "API-Auth-Token")
    private String akStr;

    @TableField(value = "sk_str")
    @ApiModelProperty(value = "密钥")
    private String skStr;

    @TableField(value = "region_name")
    @ApiModelProperty(value = "区域名称")
    private String regionName;

    @TableField(value = "url")
    @ApiModelProperty(value = "请求路径,例如19.50.221.35:8080")
    private String url;

    @TableField(value = "create_date")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;


    @TableField(exist = false)
    private String applyTime;

    @TableField(exist = false)
    private String signature;

}
